package mipo.top.base.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult {
    private String message = "success";
    private Boolean success = true;
    private Object resultData;

    public static JsonResult me(){
        return new JsonResult();
    }

    public JsonResult setResultData(Object resultData){
        this.resultData = resultData;
        return this;
    }
    public JsonResult setMsg(String message){
        this.message=message;
        this.success=false;
        return this;
    }
}
